package team.scau.laboratory_repair.web.mobile.staff.web;

import io.swagger.annotations.ApiOperation;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import team.scau.laboratory_repair.common.base.BaseController;
import team.scau.laboratory_repair.common.constant.ConstantWebContext;
import team.scau.laboratory_repair.common.enums.RecordStatus;
import team.scau.laboratory_repair.modules.po.Record;
import team.scau.laboratory_repair.modules.po.User;
import team.scau.laboratory_repair.modules.po.WechatUser;
import team.scau.laboratory_repair.service.WechatUserService;
import team.scau.laboratory_repair.service.RecordService;
import team.scau.laboratory_repair.common.page.MyPage;

import javax.servlet.http.HttpSession;

/**
 * @Description:
 * @Author:ZTF
 * @Date:2018/5/22 17:06
 */
@Controller
@CommonsLog
@RequestMapping("/mobile/staff")
public class StaffController extends BaseController {
    @Autowired
    private WechatUserService wechatUserService;
    @Autowired
    private RecordService recordService;
    @Autowired
    private HttpSession session;


    @GetMapping("/homepage")
    @ApiOperation(value="返回微信端员工系统主界面", notes="")
    public String staffHomePage(Model model) {
        return "/mobile/staff/HomePage";
    }

    @GetMapping("/StaffRepairItem")
    @ApiOperation(value="返回微信端员工系统维修单项，以后会分成五项", notes="")
    public String staffRepairItem() {
        return "/mobile/staff/StaffRepairItem";
    }
}
